package com.mkbk.mapper;

import com.mkbk.model.Supply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplyMapper {

    // 查询所有的供应商
    List<Supply> getAllSupply(@Param("sName") String sName);

    // 分页查询
    List<Supply> getAllSupplyByPage(@Param("sName") String sName, @Param("current") int current, @Param("pageSize") int pageSize);

    // 添加供应商
    void addSupply(Supply supply);

    // 删除供应商
    void deleteSupplyById(int id);

    // 修改供应商
    void updateSupplyById(Supply supply);

}
